home *** CD-ROM | disk | FTP | other *** search
- From: LittleGuyRascal@msn.com (Gregory Saxton)
- Subject: RE: Class problem
- Date: 28 Feb 96 13:19:07 -0800
- References: <4gv6j2$klv@news-e2b.gnn.com>
- Message-ID: <00001a81+0000a942@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- Addr is at most a type name - not an instance of your class.
-
- In your code after the addr_data class is defined create a class
- instance like any other datatpe:
-
- addr_data addr;
-
- then try
-
- cin >> addr.zip;
- cin >> addr.phone;
-
- also remove the word addr from the class declaration - that is C
- structure notation and not buying you anything.
-
-